//
//  LLAttributedLabel.h
//  LLAttributedStringTest
//
//  Created by ZPP on 13-2-19.
//  Copyright (c) 2013年 ZPP. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreText/CoreText.h>
#import <QuartzCore/QuartzCore.h>

@interface LLAttributedLabel : UILabel{
    NSMutableAttributedString          *_attString;
}

@property (nonatomic,retain)NSMutableAttributedString          *attString;

// 设置某段字的颜色
- (void)setColor:(UIColor *)color fromIndex:(NSInteger)location length:(NSInteger)length;

// 设置某段字的字体
- (void)setFont:(UIFont *)font fromIndex:(NSInteger)location length:(NSInteger)length;

// 设置某段字的风格
- (void)setStyle:(CTUnderlineStyle)style fromIndex:(NSInteger)location length:(NSInteger)length;
- (void)drawRect:(CGRect)rect;

- (void)addTitle:(NSString*)title withFont:(UIFont*)font withColor:(UIColor *)color withStyle:(CTUnderlineStyle)style;

- (void)addTitle:(NSString*)title withFont:(UIFont*)font withColor:(UIColor *)color;

@property (nonatomic, retain) UIColor *defaultColor;
- (void)addTitle:(NSString*)title withFont:(UIFont*)font;

@property (nonatomic, retain) UIFont *defaultFont;
- (void)addTitle:(NSString*)title withColor:(UIColor *)color;

+ (LLAttributedLabel*)attributeInfoLabel;

@end
